package com.zrwl.poscloud.xo.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zrwl.poscloud.base.entity.AdminLog;
import com.zrwl.poscloud.base.superI.SuperMapper;
import com.zrwl.poscloud.xo.vo.AdminLogVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 操作员日志 Mapper类
 *
 * @author 刘思童 AutoGenerate
 * @date 2021-11-23
 */
public interface AdminLogMapper extends SuperMapper<AdminLog> {
    public IPage<AdminLogVO> getPageList(Page page, @Param("param") AdminLogVO adminLogVO);
    public IPage<AdminLogVO> getPageListForCancelBusiness(QueryWrapper<AdminLogVO> wrapper,Page page, @Param("param") AdminLogVO adminLogVO);
    Map<String,Object> getCashRelatedInfo(@Param("adminUid") String adminUid,@Param("startTime") String startTime, @Param("endTime") String endTime);
    List<Map<String,Object>> getCardRelatedInfo(@Param("adminUid") String adminUid, @Param("startTime") String startTime, @Param("endTime") String endTime);
    double getCardTariff(@Param("adminUid") String adminUid, @Param("startTime") String startTime, @Param("endTime") String endTime);
    double getSubsidyRelatedInfo(@Param("adminUid") String adminUid, @Param("startTime") String startTime, @Param("endTime") String endTime);
    Map<String, Object> getAgentRelatedInfo(@Param("deptRoleTree") String[] deptRoleTree, @Param("startTime") String startTime, @Param("endTime") String endTime);
    Map<String, Object> getRechargeRelatedInfo(@Param("companyUid") String companyUid, @Param("startTime") String startTime, @Param("endTime") String endTime);
}
